// import './promise.finally'
import _finally from "./promise.finally"
console.log(`finally is`,_finally)

let cdd = (function (P) {
  return new P((resolve: any, reject: any) => { 
    setTimeout(() => {
      resolve('cdd')
    }, 1000);
  })
}(Promise))

cdd.then((res:any) => {
  console.log(`值是: ${res}`)
}).finally(() => {
  console.log(`结束了`)
})
